import { IsNotEmpty, IsString } from "class-validator";

export class ValidationDto {
	@IsNotEmpty({ message: "signature不能为空" })
	@IsString({ message: "signature必须是字符串" })
	signature: string;

	@IsNotEmpty({ message: "echostr不能为空" })
	@IsString({ message: "echostr必须是字符串" })
	echostr: string;

	@IsNotEmpty({ message: "timestamp不能为空" })
	@IsString({ message: "timestamp必须是字符串" })
	timestamp: string;

	@IsNotEmpty({ message: "nonce不能为空" })
	@IsString({ message: "nonce必须是字符串" })
	nonce: string;
}
